package com.my.fp.basic;

import java.util.List;
import java.util.function.Function;
import java.util.stream.Stream;

/**
 * @author: marshal
 * @date: 2021-09-29 2:16 PM
 * <p>
 * public interface Function<T, R> 接口使用案例
 */
public class FunctionTest {
    public static void main(String[] args) {
        Function<String, String> toUpperCase = String::toUpperCase;
        Stream.of("year", "month", "day").map(toUpperCase).forEach(System.out::println);
    }
}
